package ca.etsmtl.log730.projet2.connectors.msg.user;

import java.io.Serializable;

import ca.etsmtl.log730.projet2.users.User;

public class UserCMD implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1248368436764197748L;
	private Action action;
	private User user;
	
	public UserCMD(Action a, User u) {
		setAction(a);
		setUser(u);
	}
	
	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Action getAction() {
		return action;
	}

	public void setAction(Action action) {
		this.action = action;
	}

	public static enum Action {
		JOINING, LEAVING;
	}
	
}
